﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ShanNiang.AutoUpdate.Service.Responses
{
    public class PublishedClientResponse
    {
        /// <summary>
        /// id
        /// </summary>
        public Guid Id { get; set; }
        /// <summary>
        /// 名称
        /// </summary>
        public string? Name { get; set; }
        /// <summary>
        /// 主版本号
        /// </summary>
        public int Major { get; set; }
        /// <summary>
        /// 子版本号
        /// </summary>
        public int Minor { get; set; }
        /// <summary>
        /// 构建版本号
        /// </summary>
        public int Build { get; set; }
        /// <summary>
        /// 下载地址
        /// </summary>
        public string? Url { get; set; }
        /// <summary>
        /// 版本号数值
        /// </summary>
        public int Version { get; set; }
        /// <summary>
        /// 更新内容
        /// </summary>
        public string? Content { get; set; }
        /// <summary>
        /// 远程版本号
        /// </summary>
        public Version RemoteVersion { get { return new Version($"{Major}.{Minor}.{Version}.{Build}"); } }
    }
}
